<html xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" >  

    <!--    <h:body>-->
    <ui:composition template="layout.xhtml">
        <ui:define name="corpo">
            <h:form id="index_form" acceptcharset="utf-8">
                <div id="breadcrumb">
                    <p:commandLink  actionListener="#{managerIndex.redirect('index.xhtml')}" value="Inicio" update="@form" immediate="true"/> >
                    <p:commandLink  actionListener="#{managerIndex.redirect('indexProtocolo.xhtml')}" value="Protocolo" update="@form" immediate="true"/> >
                    <p:commandLink   value="Balanço Diário" update="@form" immediate="true"/>
                </div>
                <p:panel header="Balanço Diário">                    

                    <h:panelGrid columns="2" styleClass="textAlignRight">
                        <h:outputLabel value="Data :"/>
                        <p:calendar value="#{managerLancamento.lancamento.dataLanc}"
                                    mode="popup" showOn="both" showButtonPanel="true" Mpattern="dd/MM/yyyy"
                                    required="true" requiredMessage="O campo data é obrigatório"/>

                        <h:outputLabel value="Selecione :"/>
                        <p:selectOneMenu >  
                            <f:selectItem itemLabel="Todos" itemValue="3" />  
                            <f:selectItem itemLabel="Orçamentos" itemValue="1" />  
                            <f:selectItem itemLabel="Protocolos" itemValue="2" />  
                        </p:selectOneMenu>
                    </h:panelGrid>
                    
                    <div style="text-align: center;">
                        <p:commandButton icon="ui-icon-search" value="Consultar"
                                         actionListener="#{managerProtocoloSelo.protocoloToSelar(managerProtocoloSelo.codProtocolo)}"
                                         update="@form"/>

                        <p:commandButton icon="ui-icon-circle-plus" value="Cancelar"
                                         actionListener="#{managerProtocoloSelo.protocoloToSelar(managerProtocoloSelo.codProtocolo)}"
                                         update="@form"/>
                        <center>
                            <p:ajaxStatus style="width:16px;height:16px;" >  
                                <f:facet name="start">  
                                    <h:graphicImage value="/media/img/loading.gif" />  
                                </f:facet>  
                                <f:facet name="complete">  
                                    <h:outputText value="" />  
                                </f:facet>  
                            </p:ajaxStatus>
                        </center>
                    </div>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
